package com._21cn.cms.common.obj;

import com.alibaba.fastjson.JSONObject;

/**
 * Created by 司徒海富 on 2015/9/9.
 */
public class ResponseObj {

    private Integer errorCode = 0;

    private String message;

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
    
    /**
     * 返回json格式对象方法
     * @return
     */
    public JSONObject toJson(){
    	JSONObject jsonObject = new JSONObject();
    	jsonObject.put("errorCode", errorCode);
    	jsonObject.put("message", message);
    	return jsonObject;
    }
}
